package cn.db101.jcc.crawl.runner;

import cn.db101.jcc.crawl.pipeline.LineupPipeline;
import cn.db101.jcc.crawl.processor.LineupProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import us.codecraft.webmagic.Spider;

/**
 * @author zooy
 * @since 2024/6/11-12:30
 */
@Component
public class JccRunner implements CommandLineRunner {

    @Autowired
    private LineupPipeline lineupPipeline;

    @Override
    public void run(String... args) throws Exception {
        /*Spider.create(new LineupProcessor())
                .addUrl("https://m.ali213.net/jcczz/zhenrong/")
                .addPipeline(lineupPipeline)
                .run();*/
    }
}
